<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="amqp.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="amqp.resources.html">资源类型</a></div>
 <div class="up"><a href="amqp.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="amqp.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>AMQP 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.host" class="link">amqp.host</a></td>
      <td>localhost</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.vhost" class="link">amqp.vhost</a></td>
      <td>/</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.port" class="link">amqp.port</a></td>
      <td>5672</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.login" class="link">amqp.login</a></td>
      <td>guest</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.password" class="link">amqp.password</a></td>
      <td>guest</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.auto-ack" class="link">amqp.auto_ack</a></td>
      <td>0</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.min-messages" class="link">amqp.min_messages</a></td>
      <td>0</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.max-messages" class="link">amqp.max_messages</a></td>
      <td>1</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="amqp.configuration.html#ini.amqp.prefetch-count" class="link">amqp.prefetch_count</a></td>
      <td>3</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>

   
     <dt id="ini.amqp.host">
      <em><code class="parameter">amqp.host</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       The host to which to connect.
      </p>
     </dd>

    
    
     <dt id="ini.amqp.vhost">
      <em><code class="parameter">amqp.vhost</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       The virtual host on the broker to which to connect.
      </p>
     </dd>

    
    
     <dt id="ini.amqp.port">
      <em><code class="parameter">amqp.port</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       The port on which to connect.
      </p>
     </dd>

    
    
     <dt id="ini.amqp.login">
      <em><code class="parameter">amqp.login</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       The login to use while connecting to the broker.
      </p>
     </dd>

    
    
     <dt id="ini.amqp.password">
      <em><code class="parameter">amqp.password</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       The password to use while connecting to the broker.
      </p>
     </dd>

    
    
     <dt id="ini.amqp.auto-ack">
      <em><code class="parameter">amqp.auto_ack</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       Whether calls to <span class="methodname"><a href="amqpqueue.get.html" class="methodname">AMQPQueue::get()</a></span> and <span class="methodname"><a href="amqpqueue.consume.html" class="methodname">AMQPQueue::consume()</a></span> should require that the client explicitly acknowledge messages. Setting this value to 1 will pass in the <strong><code>AMQP_AUTOACK</code></strong> flag to the above method calls if the <em>flags</em> field is omitted. 
      </p>
     </dd>

    
    
     <dt id="ini.amqp.min-messages">
      <em><code class="parameter">amqp.min_messages</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       The minimum number of messages to require during a call to <span class="methodname"><a href="amqpqueue.consume.html" class="methodname">AMQPQueue::consume()</a></span>. 
      </p>
     </dd>

    
    
     <dt id="ini.amqp.max-messages">
      <em><code class="parameter">amqp.max_messages</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       The maximum number of messages to require during a call to <span class="methodname"><a href="amqpqueue.consume.html" class="methodname">AMQPQueue::consume()</a></span>.
      </p>
     </dd>

    
    
     <dt id="ini.amqp.prefetch-count">
      <em><code class="parameter">amqp.prefetch_count</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       The number of messages to prefect from the server during a call to <span class="methodname"><a href="amqpqueue.get.html" class="methodname">AMQPQueue::get()</a></span> or <span class="methodname"><a href="amqpqueue.consume.html" class="methodname">AMQPQueue::consume()</a></span> during which the <strong><code>AMQP_AUTOACK</code></strong> flag is not set.
      </p>
     </dd>

    

  </dl>

 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="amqp.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="amqp.resources.html">资源类型</a></div>
 <div class="up"><a href="amqp.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
